var uname :string = "Runoob";
var score1 :number = 50;
var score2 :number = 30;
var sum :number = score1+score2;
console.log("名字："+uname);
console.log("总成绩："+sum);
 



// 关系运算符
var num1:number  = 9;
console.log("num1的值："+num1);

var num2:number = 9;
console.log("num2的值："+num2);


var res = num1>num2
console.log("num1>num2:"+res);

var res = num1<num2
console.log("num1<num2:"+res);

var res = num1==num2
console.log("num1=num2:"+res);



var res = num1!=num2
console.log("num1!=num2:"+res);


var avg:number = 20;
var percentage:number = 90;
console.log("avg值为："+avg+",percentage的值为："+percentage);

var res:boolean = ((avg>50)&&(percentage<100));
console.log("res:"+res);


